#ifndef TELEFON_BASE_H
#define TELEFON_BASE_H
#include <QString>
#include <odb/core.hxx>
#include <QSharedPointer>
#include "Kontrahent_BASE.h"

class Kontrahent_BASE;

#pragma db object
class Telefon_BASE{

protected:
    Telefon_BASE(){}

    friend class odb::access;

#pragma db id auto
    unsigned long id;

#pragma db not_null
    QSharedPointer<Kontrahent_BASE> kontrahent_;

#pragma db not_null type("VARCHAR(60)")
    QString nazwa_;
#pragma db not_null type("VARCHAR(14)")
    QString nr_;

};

#endif // TELEFON_BASE_H
